Magic Leap 2
The Magic Leap 2 build delivers an optimized rendering pipeline, controller bindings, and localization heuristics for Lumin OS. It is available exclusively to Enterprise customers.
Enterprise Access
- Request activation via
support@web-ar.studiowith your Magic Leap organization ID and intended deployment timeline. - After approval, you receive:
- A private UPM registry URL that exposes the
com.webarvps.vps.ml2package. - Side-loadable
.ziparchives that contain preconfigured Lumin projects and sample scenes. - A deployment checklist covering certificate management, spatial permission prompts, and controller gestures.
- A private UPM registry URL that exposes the
Enterprise only: The Magic Leap 2 adapters, shaders, and map streaming plugins are not bundled with the public SDK.
Prerequisites
- Magic Leap 2 (Lumin OS 1.4.0 or newer).
- Magic Leap Hub with the
ml2Unity extensions. - Unity 2022.3 LTS + Universal Render Pipeline (URP) profile.
- WebAR³ VPS API key with maps published for indoor use. Acquire keys via space.web-ar.studio or email support@webar3.com / support@web-ar.studio.
Setup Steps
- Add the Enterprise package feed to your Unity project's
Packages/manifest.json:{
"scopedRegistries": [
{
"name": "WebAR³ Enterprise",
"url": "https://packages.web-ar.studio/enterprise-registry",
"scopes": [
"com.webarvps.vps",
"com.webarvps.vps.ml2"
]
}
]
} - Install the Magic Leap 2 support package via Package Manager.
- Switch platform to Lumin (
File → Build Settings → Lumin) and import the example sceneAssets/WebARStudio/MagicLeap2/Scenes/SpatialLocalization.unity. - Update localization settings on the
VPSLocalisationServicecomponent:- Enable
Fails Count To Reset=3. - Set
Localization Timeout=1.5. - Assign your Magic Leap specific map IDs.
- Enable
- Build & deploy using Magic Leap Hub. During the first launch, grant camera, depth, and meshing permissions.
Testing Checklist
- Validate VPS acquisition indoors (recommended minimum 120 lux).
- Confirm controller trigger toggles the localization HUD overlay.
- Use the included
PoseDiagnosticsprefab to monitor drift and re-localization events. - Run the sample
Spatial Anchorsscene if you rely on meshing data.
Support
Enterprise accounts gain a dedicated Slack channel with WebAR³ solutions engineers for troubleshooting Lumin OS patches, firmware regressions, or custom viewer requirements.